﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Backend.JYD.Model;

namespace Backend.JYD.BLL
{
    public class RoleInfoBLL
    {
        private static readonly IDAL.IRoleInfo idal = Factory.DALFactory.CreateEFDAL<IDAL.IRoleInfo>("DAL.RoleInfoDAL");

        public List<RoleInfo> GetEmpRoleInfoByEmpId(Int64 empId)
        {
            if (empId <= 0) return null;
            var list = idal.GetEmpRoleInfoByEmpId(empId);
            return list == null ? null : list.ToList();
        }

        public IList<RoleInfo> GetAllRoleInfo()
        {
            var query = idal.GetAllRoleInfo();
            return query == null ? null : query.ToList();
        }

    }
}
